* Clean up
clear all

/* Set working directory: please set your own
cd "~/Dropbox/JOP third submission/JOP replication/"
*/

* Open dataset

use 01_data/cis_data.dta, clear

* Fake model to start the data
regr pp_dummy CCAA
regsave CCAA using 01_data/survey_data_2.dta, ci level(95) replace addlabel ///
(Removed, fake, Model, fake,  FE, fake)

* Generate interaction
gen cabine_use_pp_dummy = cabine_use * pp_dummy

* Actual analyses
regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy i.income age age_sq i.education i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Female, Model, uncomfortable, FE, With region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female age age_sq i.education i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Income, Model, uncomfortable, FE, With region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income i.education i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Age and age squared, Model, uncomfortable, FE, With region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income age age_sq i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Education, Model, uncomfortable, FE, With region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income age age_sq i.education i.CCAA, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Mun Size, Model, uncomfortable, FE, With region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy i.income age age_sq i.education i.TAMUNI, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Female, Model, uncomfortable, FE, Without region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female age age_sq i.education i.TAMUNI, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Income, Model, uncomfortable, FE, Without region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income i.education i.TAMUNI, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Age and age squared, Model, uncomfortable, FE, Without region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income age age_sq i.TAMUNI, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Education, Model, uncomfortable, FE, Without region fixed effects)

regr uncomfortable cabine_use pp_dummy cabine_use_pp_dummy female i.income age age_sq i.education, r
est store pp_fe_controls
regsave cabine_use_pp_dummy using 01_data/survey_data_2.dta, ci level(95) append addlabel ///
(Removed, Mun Size, Model, uncomfortable, FE, Without region fixed effects)
